# File: ally_soldier_formation.gd  
# 路径：res://techs/ally/ally_soldier_formation.gd
# 阵列战术：根据附近友军提升防御
extends TechnologyResource
class_name AllySoldierFormation

# 防御加成配置
var defense_per_unit = 0.03  # 每个友军提供的防御加成
var max_stacks = 5  # 最大叠加层数

func _init() -> void:
	super()
	display_name = "Formation Tactics"
	description = "+3% defense per nearby ally soldier (max 5 stacks)"
	# 监听单位创建事件
	GlobalSignal.gs_unit_created.connect(_on_unit_create)

# 单位创建时绑定防御更新
func _on_unit_create(unit: Unit):
	if unit is AllySoldier:
		pass
